package com.gxitsky.repository;

import com.gxitsky.entity.User;
import org.springframework.stereotype.Repository;
import reactor.core.publisher.Mono;

/**
 * @author gxing
 * @desc TODO
 * @date 2022/7/30
 */
@Repository
public interface UserRepository {
    default Mono<User> findById(Long userId) {
        User user = new User();
        user.setId(userId);
        return Mono.just(user);
    }

    default Mono<Void> deleteById(Long userId) {
        return Mono.just(null);
    }
}
